DIALECT = 'mysql'
DRIVER = 'pymysql'

USERNAME = 'root'
PASSWORD = '123456'
HOST = '192.168.0.130'
PORT = '3306'
DATABASE = 'test'

# USERNAME = 'sysdba'
# PASSWORD = 'GBase8sV8316'
# HOST = '172.23.179.172'
# PORT = '5258'
# DATABASE = 'cbsxm'


# USERNAME = 'jlct'
# PASSWORD = '123'
# HOST = '39.107.103.60'
# PORT = '3306'
# DATABASE = 'cbsxm'

init_command = "set names utf8"


SQLALCHEMY_DATABASE_URI = '{}+{}://{}:{}@{}:{}/{}?charset=utf8'.format(
    DIALECT,DRIVER,USERNAME,PASSWORD,HOST,PORT,DATABASE
)
SQLALCHEMY_COMMIT_ON_TEARDOWN = False #是否自动提交 False 否，True是
SQLALCHEMY_TRACK_MODIFICATIONS = True #如果设置成True(默认情况)，Flask-SQLAlchemy 将会追踪对象的修改并且发送信号。这需要额外的内存， 如果不必要的可以禁用它。如果你不显示的调用它，在最新版的运行环境下，会显示警告。